﻿@{
    Layout = "~/Views/Shared/_DisplayLayout.cshtml";
}
@using Batman.Cms.Domains;
@model Abp.Application.Services.Dto.PagedResultDto<Article>;
<div class="picshow">
    <ul>
        <li>
            <a href="/">
                <i><img src="/cms/images/b01.jpg"></i>
                <div class="font">
                    <h3>个人博客模板《早安》</h3>
                </div>
            </a>
        </li>
        <li>
            <a href="/">
                <i><img src="/cms/images/b02.jpg"></i>
                <div class="font">
                    <h3>个人博客模板《早安》</h3>
                </div>
            </a>
        </li>
        <li>
            <a href="/">
                <i><img src="/cms/images/b03.jpg"></i>
                <div class="font">
                    <h3>个人博客模板《早安》</h3>
                </div>
            </a>
        </li>
        <li>
            <a href="/">
                <i><img src="/cms/images/b04.jpg"></i>
                <div class="font">
                    <h3>个人博客模板《早安》</h3>
                </div>
            </a>
        </li>
        <li>
            <a href="/">
                <i><img src="/cms/images/b05.jpg"></i>
                <div class="font">
                    <h3>个人博客模板《早安》</h3>
                </div>
            </a>
        </li>
    </ul>
</div>

<ul class="blogs">
    @foreach (var article in Model.Items)
    {
        <li>
            <span class="blogpic">
                <a href="~/page/post/@article.Id">
                    @if (string.IsNullOrEmpty(article.ImageThumbUrl))
                    {
                        <img src="/cms/images/text02.jpg" alt="@article.Title 缩略图">
                    }
                    else
                    {
                        <img src="@article.ImageThumbUrl" alt="@article.Title 缩略图">
                    }
                </a>
            </span>
            <h3 class="blogtitle">
                <a href="~/page/post/@article.Id">@article.Title</a>
            </h3>
            <div class="bloginfo">
                <p>@article.Summary</p>
            </div>
            <div class="autor">
                <span class="lm">
                    <a href="~/page/post/@article.Id" title="@article.Title" target="_blank" class="classname">@article.Title</a>
                </span>
                @if (article.CreateAt.HasValue)
                {
                    <span class="dtime">@article.CreateAt.Value.ToString("yyyy-MM-dd")</span>
                }
                else
                {
                    <span class="dtime"></span>

                }
                <span class="viewnum">浏览（<a href="~/page/post/@article.Id">@article.Counter</a>）</span>
                <span class="readmore">
                    <a href="~/page/post/@article.Id">阅读原文</a>
                </span>
            </div>
        </li>

    }
</ul>
